package com.js.common.core;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import net.mamoe.mirai.event.events.MessageEvent;
import net.mamoe.mirai.message.data.MessageChain;
import org.springframework.context.annotation.Scope;

@Data
@Slf4j
@Scope("prototype")
public class BotSend extends BotCache {
    /**
     * 消息事件
     */
    private MessageEvent event;

    public void send(Long userId, Long targetId, MessageChain result){
        getEvent().getSubject().sendMessage(result);
    }

    public String newline(){
        return "\r\n";
    }
}
